﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;
using ARR.Services.Domain;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "UnitsOfMeasureService" in both code and config file together.
    public class UnitsOfMeasureService : IUnitsOfMeasureService
    {
        public List<UnitOfMeasureConvertion> GetAll()
        {
            return UnitsOfMeasureDomain.GetAll();
        }

        public List<UnitOfMeasureConvertion> GetBySourceUnit(string sourceUnit)
        {
            return UnitsOfMeasureDomain.GetBySourceUnit(sourceUnit);
        }        

        public void Save(List<UnitOfMeasureConvertion> unitsOfMeasure)
        {
            UnitsOfMeasureDomain.Save(unitsOfMeasure);
        }

    }
}
